package cn.edu.sjtu.se.dslab.dao;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.aadl.AADLTemplate;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IAADLTemplateDao {
	public void save(AADLTemplate aadlTemplate);

	public boolean delete(AADLTemplate aadlTemplate);

	public boolean deleteById(long id);

	public boolean deleteByUri(String uri);

	public void update(AADLTemplate aadlTemplate);

	public PageBean<AADLTemplate> queryByPageNum(int pageNo)
			throws DBException;
	
	public PageBean<AADLTemplate> queryByPageNum(int pageNo,String name,String description,long groupid)
			throws DBException;

	public AADLTemplate queryById(long id);

	public AADLTemplate queryByUri(String uri);

	public boolean checkUri(String uri);
}
